/**
 * 
 */
package kevin.study.zephyr.exceptions;

/**
 * Entity在ItemManager中无法取到时抛出
 * 
 * @author Kevin.Huang
 * @date 2007-9-25
 */
public class EntityMissingException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4998190252411958395L;

	/**
	 * 出错时的取不到Entity的Key;
	 */
	private String key;

	/**
	 * 
	 */
	public EntityMissingException() {
		super();
	}

	/**
	 * @param message
	 */
	public EntityMissingException(String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public EntityMissingException(Throwable cause) {
		super(cause);
	}

	/**
	 * @param message
	 * @param cause
	 */
	public EntityMissingException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @return the key
	 */
	public String getKey() {
		return key;
	}

	/**
	 * @param key
	 *            the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

}
